package com.cskaoyan.service;

import com.aliyun.oss.model.PutObjectResult;
import com.cskaoyan.config.aliyun.AliyunComponent;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.InputStream;
@Service
public class FileServiceImpl implements FileService{
    @Autowired
    private AliyunComponent aliyunComponent;
    @Override
    public void fileUpload(String fileName, InputStream in) {
        PutObjectResult result = aliyunComponent.fileUpload(fileName, in);
    }
}
